package com.zrrd.io.byteStream;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @author WanJl
 * @version 1.0
 * @title FileOutputStreamDemo03
 * @description
 * @create 2023/9/23 16:53
 */
public class FileOutputStreamDemo03 {
    public static void main(String[] args) throws IOException {
        FileOutputStream out = new FileOutputStream("D:/wanjl.txt");

        byte[] bytes = "Hello World".getBytes();

        out.write(bytes,0,bytes.length);

        out.close();

    }

}
